{extend name="./zui/common.html" /}
{block name="body"}
<div class="container">
    <div class="row">
        <div class="col-log-12">
            <a class="btn btn-info" href="/vote/Index/addVote" > 添加投票 </a>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <table class="table table-striped">
                <tr>
                    <th> 标题 </th>
                    <th> 选项数 </th>
                    <th> 更新时间 </th>
                    <th> 操作 </th>
                </tr>
                {volist name="_voteList" id="vote"}
                <tr>
                    <td>{$vote['title']}</td>
                    <td>{$vote['option_count']}</td>
                    <td>{:date('Y-m-d H:i',$vote['update_time'])}</td>
                    <td>
                        <a class="btn btn-link" target="_blank" href="/vote/Index/vote/id/{$vote['vote_id']}"> 投票 </a>
                    </td>
                </tr>
                {/volist}
            </table>
        </div>
    </div>
</div>
{/block}